package com.xxx.client.android.api.impl;

import org.ksoap2.serialization.SoapObject;

import com.xxx.client.android.api.SubMenuVO;

public class SubMenuVOBuilder extends SOAPBuilder<SubMenuVO> {

	@Override
	public SubMenuVO build(SoapObject soapObject) throws RuntimeException {
		SubMenuVO vo = new SubMenuVO();
		vo.setSubMenuId(Integer.valueOf(soapObject.getProperty("subMenuId")
				.toString()));
		vo.setSubMenuName(soapObject.getProperty("subMenuName").toString());
		vo.setMenuId(Integer.valueOf(soapObject.getProperty("menuId")
				.toString()));
		vo.setSubMenuUrl(soapObject.getProperty("subMenuUrl").toString());
		vo.setIsShow(Integer.valueOf(soapObject.getProperty("isShow")
				.toString()));
		vo.setSubMenuShowOrder(Integer.valueOf(soapObject.getProperty(
				"subMenuShowOrder").toString()));
		return vo;
	}

}
